<html>
<head>
    <script type="text/javascript" src="file:///android_asset/viz-standalone.js"></script>
    <script type="text/javascript">
<!--     Viz.instance().then(function(viz) {-->
<!--    document.body.appendChild(viz.renderSVGElement("digraph { a -> b }"));-->
<!--  });-->
        function renderDotCode(dotCode) {
            Viz.instance().then(function(viz) {
                let svg = viz.renderString(dotCode,{format:"svg"});
                document.getElementById("graph").innerHTML = svg;
                console.log(svg);
            });
        }



    </script>
</head>
<body>
<div id="graph"></div>
</body>
</html>

